#![allow(elided_lifetimes_in_paths)]
#![allow(clippy::wildcard_imports)]
pub use sea_orm_migration::prelude::*;
mod m20220101_000001_users;

mod m20250105_000001_create_sys_user_table;
mod m20250105_000002_create_sys_org_table;
mod m20250105_000003_create_sys_role_table;
mod m20250105_000004_create_sys_menu_table;
mod m20250105_000005_create_relation_tables;
mod m20250105_000006_create_dict_tables;
mod m20250105_000007_create_post_and_scope_tables;
mod m20250105_000008_create_params_attachment_tables;
mod m20250105_000009_create_log_tables;
mod m20250105_000010_create_auth_tables;
mod m20250105_000011_create_mail_tables;
mod m20250105_000012_create_sms_tables;
pub struct Migrator;

#[async_trait::async_trait]
impl MigratorTrait for Migrator {
    fn migrations() -> Vec<Box<dyn MigrationTrait>> {
        vec![
            Box::new(m20220101_000001_users::Migration),
            Box::new(m20250105_000001_create_sys_user_table::Migration),
            Box::new(m20250105_000002_create_sys_org_table::Migration),
            Box::new(m20250105_000003_create_sys_role_table::Migration),
            Box::new(m20250105_000004_create_sys_menu_table::Migration),
            Box::new(m20250105_000005_create_relation_tables::Migration),
            Box::new(m20250105_000006_create_dict_tables::Migration),
            Box::new(m20250105_000007_create_post_and_scope_tables::Migration),
            Box::new(m20250105_000008_create_params_attachment_tables::Migration),
            Box::new(m20250105_000009_create_log_tables::Migration),
            Box::new(m20250105_000010_create_auth_tables::Migration),
            Box::new(m20250105_000011_create_mail_tables::Migration),
            Box::new(m20250105_000012_create_sms_tables::Migration),
            // inject-above (do not remove this comment)
        ]
    }
}
